/* jshint indent: 1 */

module.exports = function (sequelize, DataTypes) {
	return sequelize.define('sys_config', {
		id: {
			type: DataTypes.STRING(64),
			allowNull: false,
			primaryKey: true
		},
		config_name: {
			type: DataTypes.STRING(100),
			allowNull: false
		},
		config_key: {
			type: DataTypes.STRING(100),
			allowNull: false
		},
		config_value: {
			type: DataTypes.STRING(1000),
			allowNull: false
		},
		is_sys: {
			type: DataTypes.CHAR(1),
			allowNull: false
		},
		create_by: {
			type: DataTypes.STRING(64),
			allowNull: false
		},
		create_date: {
			type: DataTypes.DATE,
			allowNull: false
		},
		update_by: {
			type: DataTypes.STRING(64),
			allowNull: false
		},
		update_date: {
			type: DataTypes.DATE,
			allowNull: false
		},
		remarks: {
			type: DataTypes.STRING(500),
			allowNull: true
		}
	}, {
		tableName: 'sys_config',
		timestamps: false,
		freezeTableName: true
	});
};